X-Git-Url: http://git.cyclocoop.org/%27%20.%20%24prefix%20.%20Wiki::transformTitleToURI%28%24matches%5B1%5D%29%20.%20%27?a=blobdiff_plain;f=includes%2Fmedia%2FSVGMetadataExtractor.php;h=fc93b2331f223cd2aabac0fd9a3ec9305d1510f8;hb=e81a7da6c000384b97319c269ffd1e67afcb8ea8;hp=2cf4d23b457db307571a5d8f37a97aab8b82caed;hpb=ca55cfd87d2efc41b6ab208d60d1cde61f0ac9c0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/SVGMetadataExtractor.php b/includes/media/SVGMetadataExtractor.php index 2cf4d23b45..fc93b2331f 100644 --- a/includes/media/SVGMetadataExtractor.php +++ b/includes/media/SVGMetadataExtractor.php @@ -58,8 +58,6 @@ class SVGReader { private $languagePrefixes = []; /** - * Constructor - * * Creates an SVGReader drawing from the source provided * @param string $source URI from which to read * @throws MWException|Exception @@ -108,17 +106,17 @@ class SVGReader { // Because we cut off the end of the svg making an invalid one. Complicated // try catch thing to make sure warnings get restored. Seems like there should // be a better way. - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); try { $this->read(); } catch ( Exception $e ) { // Note, if this happens, the width/height will be taken to be 0x0. // Should we consider it the default 512x512 instead? - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); libxml_disable_entity_loader( $oldDisable ); throw $e; } - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); libxml_disable_entity_loader( $oldDisable ); }